﻿using SmartAnswerPlatform.Models.ViewModels.Base;
using SqlSugar;

namespace SmartAnswerPlatform.Models.Entitys.System
{
    /// <summary>
    /// 用户表
    /// </summary>
    [SugarTable("sys_user", "用户表")]
    public class SysUser : BaseEntity
    {
        /// <summary>
        /// 用户名|登录名
        /// </summary>
        [SugarColumn(ColumnDescription = "用户名|登录名", Length = 50)]
        public string? UserName { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        [SugarColumn(ColumnDescription = "真实姓名", Length = 50)]
        public string? RealName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(ColumnDescription = "密码", Length = 50)]
        public string? Password { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [SugarColumn(ColumnDescription = "邮箱", Length = 100)]
        public string? Email { get; set; }

        /// <summary>
        /// 头像地址
        /// </summary>
        [SugarColumn(ColumnDescription = "头像地址", Length = 300)]
        public string? HeadPortrait { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [SugarColumn(ColumnDescription = "手机号", Length = 20)]
        public string? PhoneNumber { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDescription = "备注", Length = 300)]
        public string? Remark { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        [SugarColumn(ColumnDescription = "生日", ColumnDataType = "date")]
        public DateTime? Birthday { get; set; }

        /// <summary>
        /// 所在地址
        /// </summary>
        [SugarColumn(ColumnDescription = "所在地址", Length = 200)]
        public string? Address { get; set; }

    }
}
